ip/ffmpeg: more precise seeking
authorihy123 <aladinandreyy@gmail.com>
Thu, 14 Aug 2025 09:44:10 +0000 (12:44 +0300)
committerSebastian Ramacher <sramacher@debian.org>
Fri, 12 Sep 2025 21:00:35 +0000 (23:00 +0200)
commitc1ae29c73c7be1797c37b340e7fb6ccade9c7823
treeeefac59ae2fa2d65bf24710f00b70c5b12cd51f7
parentae91f15bd7fafc95593a625d218a1c5772ceb137
ip/ffmpeg: more precise seeking

av_seek_frame() and avformat_seek_file() seek to nearest "keyframe". For
codecs like, for example, ape this means that seeking will be very off
(5 seconds or more). So what we do is:
1. seek to nearest "keyframe" before the desired time,
2. discard some frames to approach the desired time.

Gbp-Pq: Name 0003-ip-ffmpeg-more-precise-seeking.patch
ip/ffmpeg.c